// packageA/member/components/extensionTabs/extensionTabs.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    listData: {
      type: Array,
      value: []
    },
    orderType: {
      type: String,
      default: "extension"
    }
  },
  lifetimes: {
    // 生命周期函数，可以为函数，或一个在methods段中定义的方法名
    attached() {
      console.log('1111111111')
      setTimeout(()=>{
        console.log(this.data.listData)
      },3000)
      
    }
  },  
  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    toDetail(e) {
      let id = e.currentTarget.dataset.id;
      wx.navigateTo({
        url: '/packageA/member/presentationDetails/presentationDetails?record_id=' + id
      });
    },
    confirmReceipt(e) {
      wx.navigateTo({
        url: '/packageA/member/wechatWithdrawal/wechatWithdrawal?id=' + e.currentTarget.dataset.id + '&orderType=' + this.data.orderType,
      })
    }
  }
})